package com.code.app.base;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;

public abstract class BaseActivity extends AppCompatActivity {

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(getLayoutId());
        initFunction(savedInstanceState);
    }

    public abstract int getLayoutId();

    public abstract void initFunction(Bundle savedInstanceState);

}
